package com.sea.demo.shiro.form;

import java.util.Objects;

/**
 * @Author: 快乐在角落里
 * @Create: 2020/11/8 2:30
 * 角色相关表单对象
 */
public class RoleForm {
    private String roleName;/** 角色名称 */
    private String roleCode;/** 角色代码 */
    private String description;/** 角色描述 */
    private Integer state;/** 角色状态 */

    public RoleForm() {
    }

    public RoleForm(String roleName, String roleCode, String description, Integer state) {
        this.roleName = roleName;
        this.roleCode = roleCode;
        this.description = description;
        this.state = state;
    }

    @Override
    public String toString() {
        return "RoleForm{" +
                "roleName='" + roleName + '\'' +
                ", roleCode='" + roleCode + '\'' +
                ", description='" + description + '\'' +
                ", state=" + state +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RoleForm roleForm = (RoleForm) o;
        return Objects.equals(roleName, roleForm.roleName) &&
                Objects.equals(roleCode, roleForm.roleCode) &&
                Objects.equals(description, roleForm.description) &&
                Objects.equals(state, roleForm.state);
    }

    @Override
    public int hashCode() {
        return Objects.hash(roleName, roleCode, description, state);
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}
